<!-- 注册页面 -->
<template>
  <div class="register-page">
    <div class="cancel">
      <i class="iconfont icon-jiantou3" onclick="window.history.back()"></i>
    </div>
    <div class="hole">
      <div class="title">注册新用户</div>
      <div class="input-box1">
        <div class="left">
          <i class="iconfont icon-profile"></i>
          <input
            type="text"
            name=""
            value=""
            placeholder="请输入手机号"
          />
        </div>
      </div>
      <div class="input-box1">
        <div class="left">
          <i class="iconfont icon-profile"></i>
          <input
            type="text"
            name=""
            value=""
            placeholder="请输入图片验证码"
          />
        </div>
      </div>
      <div class="input-box1">
        <div class="left">
          <i class="iconfont icon-profile"></i>
          <input
            type="text"
            name=""
            value=""
            placeholder="请输入短信验证码"
          />
        </div>
        <div class="right">获取验证码</div>
      </div>
      <div class="input-box1">
        <div class="left">
          <i class="iconfont icon-profile"></i>
          <input
            type="text"
            name=""
            value=""
            placeholder="请输入登录密码"
          />
        </div>
      </div>
      <div class="agree">
        <input type="radio" />
        <span>我已阅读并同意 <i>《隐私声明》</i> </span>
      </div>
      <div class="account">新用户注册</div>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {},
  beforeCreate() {}, //生命周期 - 创建之前
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  beforeMount() {}, //生命周期 - 挂载之前
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang="less" scoped>
.register-page {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: #fff;
  height: 100vh;
  .cancel {
    position: absolute;
    left: 2rem;
    top: 2.5%;
    i {
      color: #666;
      font-size: 2.2rem;
    }
  }
  .hole {
    margin-top: 30%;
    margin-left: 10%;
    .title {
      font-size: 18px;
      font-weight: 700;
      color: #000;
      margin-bottom: 10%;
    }
    .input-box1 {
      width: calc(100% - 2rem);
      text-align: center;
      margin-left: -1.5rem;
      margin-top: 2rem;
      position: relative;
      .left {
        width: 90%;
        border-bottom: 1px solid #ccc;
        i {
          width: 2.5rem;
          height: 2.5rem;
          font-size: 2rem;
          margin-bottom: 1rem;
        }
        input {
          width: 80%;
          margin-bottom: 1rem;
          margin-left: 1rem;
        }
      }
      .right{
        position: absolute;
        text-align: center;
        line-height: 2.439rem;
        width: 25%;
        height: 70%;
        top: 0;
        right: 3rem;
        border-radius: 2rem;
        border:1px solid gray;
        color: gray;
      }
    }
    .agree {
      display: flex;
      align-items: center;
      font-size: 1.2rem;
      margin-top: 2rem;
      span {
        margin-left: 1rem;
      }
      i {
        color: #97d0ff;
      }
    }
    .account{
      height: 40px;
      padding: 0;
      border-radius: 2rem;
      line-height: 4rem;
      font-size: 1.4rem;
      text-align: center;
      width: 90%;
      margin-top: 10%;
      color: #fff;
      opacity: 0.4;
      background: linear-gradient(-88deg, #ff4f2e, #f91f28);
    }
  }
}
</style>
